import type { MockMethod } from "vite-plugin-mock";

export default [
  {
    url: "/mock-api/user/login",
    method: "get",
    timeout: 3000,
    response: ({ query }) => {
        
      return {
        code: 0,
        result:{
          token:'HFHOQEWFN1FQPF_FQWF12FQWFQFQWFQWSSQ+Q1FQSSFQFFPOHHB='
        },
        message:'登录成功',
        type: "success",
      };
    },
  },
  {
    url: "/mock-api/user/loginOut",
    method: "get",
    timeout: 3000,
    response: ({ query }) => {
        
      return {
        code: 0,
        message:'退出登录',
        type: "success",
      };
    },
  },
] as MockMethod[];
